import { LoginFormInt } from "../type/login"
import service from "./index"

const login = (data: LoginFormInt) => {
  return service({
    url: "/login",
    method: "post",
    data
  })
}

const getGoodsList = () => {
  return service({
    url: "/getGoodsList",
    method: "get",
  })
}

const getUserList = () => {
  return service({
    url: "/getUserList",
    method: "get",
  })
}

const getRoleList = () => {
  return service({
    url: "/getRoleList",
    method: "get",
  })
}

export {
  login,getGoodsList,getUserList,getRoleList
}